<template>
  <header class="header">
    <figure>
      <img src="../assets/logo.png">
    </figure>
    <div>{{header}}</div>
    <figure>
      <img src="../assets/logo.png">
    </figure>
  </header>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  props: ['header']
}
</script>

<style scoped lang="less">
.header{
  @h: 44px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: @h;
  display: flex;
  background: white;
  box-shadow: 0 5px 5px #ccc;
  figure{
    width: @h;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    img{
      width: 30px;
      height: 30px;
    }
  }
  div{
    flex: 1;
    text-align: center;
    line-height: @h;
  }
}
</style>
